package com.qc.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qc.sys.entity.SysUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (SysUser)表数据库访问层
 *
 * @author AltmanQccc
 * @since 2020-08-26 11:38:08
 */
@Repository
public interface SysUserDao extends BaseMapper<SysUser> {

    @Select("select max(ordernum) from sys_user")
    Integer selectUserMaxOrderNum();

    @Insert("insert into sys_role_user(rid,uid) values(#{rid},#{uid})")
    void saveUserRole(Integer uid, Integer rid);
}